package util

import "time"

const (
	patten = "2006-01-02 15:04:05.000"
)

func GetCurrentTimeStamp() int64 {
	t, _ := time.Parse(patten, time.Now().Format(patten))
	return t.UnixMilli()
}

func GetCurrentTime() string {
	return time.Now().Format(patten)
}

func IntToDuration(value int) time.Duration {
	return time.Duration(value)
}
